<!DOCTYPE html>
<html>
    <head>
        <title>findIndex的实现</title>
        <script src="../../src/array/findIndex.js"></script>
    </head>
    <body>
        <script>
            const arr = [1, 2, 3, 4, 5]

            const result = findIndex(arr, item => {
                return item % 2 === 1;
            })

            console.log(result)
        </script>
    </body>
</html>